package com.gitee.cui.springcloud.order.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通用返回信息
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-26 11:54
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

	private Integer code;

	private String message;

	private T data;

	public CommonResult(Integer code, String message) {
		this(code, message, null);
	}
}
